package com.wsj.service;

import java.util.List;

import com.wsj.util.exception.BusinessException;
import com.wsj.util.page.PageResultSet;
import com.wsj.web.subclass.displayBean.Magazine.MagazineExtendBean;
import com.wsj.web.vo.homeSite.Magazine;

public interface IMagazineServ {
	
	
	boolean add(Magazine magazine)throws BusinessException;
	boolean delete(Integer id)throws BusinessException;
	boolean update(Magazine magazine)throws BusinessException;
	Magazine getMagazineById(Integer id)throws BusinessException;
	Magazine getMagazineByName(String title)throws BusinessException;
	
	public List<Magazine> getByTime(Integer top)throws BusinessException;
	
	public List<Magazine> getByNameId(Integer nameId,Integer top)throws BusinessException;
	
	PageResultSet loadMagazineByParam(String title,String content,String keyword,Integer hits,String username,Integer iscommend,Short isImg,Short shanchu,
			Short toptitle,Short gs,Short sh,int page,int pageSize,Integer magazineNameid ,Integer magazineClassid)throws BusinessException;
	PageResultSet loadMagazineByMagazineExtendBean(MagazineExtendBean magazineExtendBean)throws BusinessException;
	
	/****
	 * 
	 * @param magazineNameId
	 * @return
	 * @throws BusinessException
	 */
	List<Magazine> loadPicMagazineListByMagazineNameId(Integer magazineNameId , Integer top)throws BusinessException;
	

}
